package club.justwill.single.persistence.support;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Created by xiangnan on 15-12-30.
 */
@MappedSuperclass
public class ModelBase extends Jpo {

    @Column(name = "model_url")
    private String modelUrl;

    @Column(name = "model_type")
    private int modelType;


    public String getModelUrl() {
        return modelUrl;
    }

    public void setModelUrl(String modelUrl) {
        this.modelUrl = modelUrl;
    }

    public int getModelType() {
        return modelType;
    }

    public void setModelType(int modelType) {
        this.modelType = modelType;
    }

    protected void copyBase(ModelBase other) {
        this.modelUrl = other.getModelUrl();
        this.modelType = other.getModelType();
    }
}
